package com.spark.async;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 注意yml的异步任务的线程池配置，也可以自定义线程池Bean。
 * 还要注意异常的处理，
 * https://www.toutiao.com/i6829191540657619469/
 */
@EnableAsync
@SpringBootApplication
public class AsyncApplication {

    public static void main(String[] args) {
        SpringApplication.run(AsyncApplication.class, args);
    }

}
